/*
  Tên:Nguyễn Văn Huy
  MSSV:11374891
  Lớp:DHTH7DLT
  Ngày hoàn thành:28/04/2012
  */
#ifndef FRSACH_H
#define FRSACH_H

#include <QDialog>
#include "mysqlconnection.h"
#include "qitemselectionmodel.h"
namespace Ui {
    class frSach;
}

class frSach : public QDialog
{
    Q_OBJECT

public:
    explicit frSach(QWidget *parent = 0);
    ~frSach();
    QString selecteds;
protected:
    void changeEvent(QEvent *e);
private:
    Ui::frSach *ui;
    MySqlConnection *DB;
    QItemSelectionModel *selectionModel;    
    QString selecttens;
    void resetTableSelectionEvent();
private slots:
    void loadcbbox();
    void themsach();
    void xoasach();
    void suasach();
    void loadcbtl();
    void loadsach();
    void selectRow();

};

#endif // FRSACH_H
